gtk4.git
11 years agoHC: clean up borders for buttons & entries
Jakub Steiner [Mon, 1 Dec 2014 18:06:02 +0000 (19:06 +0100)]
HC: clean up borders for buttons & entries

https://bugzilla.gnome.org/show_bug.cgi?id=740860

11 years agoHC: vertical linked buttons,entries & combos
Jakub Steiner [Mon, 1 Dec 2014 16:45:26 +0000 (17:45 +0100)]
HC: vertical linked buttons,entries & combos

https://bugzilla.gnome.org/show_bug.cgi?id=740860

11 years agoHC: wide separator styling
Jakub Steiner [Mon, 1 Dec 2014 16:26:11 +0000 (17:26 +0100)]
HC: wide separator styling

https://bugzilla.gnome.org/show_bug.cgi?id=740862

11 years ago HC theme: more contrasty separators
Jakub Steiner [Mon, 1 Dec 2014 14:39:19 +0000 (15:39 +0100)]
 HC theme: more contrasty separators

 https://bugzilla.gnome.org/show_bug.cgi?id=740863

11 years agoHC theme: implement scroll overshoot
Jakub Steiner [Mon, 1 Dec 2014 11:33:23 +0000 (12:33 +0100)]
HC theme: implement scroll overshoot

https://bugzilla.gnome.org/show_bug.cgi?id=740876

11 years agoDrop remaining traces of GTK_UPDATE_ICON_CACHE build variable
Rui Matos [Mon, 1 Dec 2014 17:24:27 +0000 (18:24 +0100)]
Drop remaining traces of GTK_UPDATE_ICON_CACHE build variable

Commit 655c75cab791ea965e705e1b8518e6008d3a755f removed the need for
this variable but left a couple of uses in. Drop them.

11 years agomir: don't initialize the display if the required pixel formats aren't available
Marco Trevisan (Treviño) [Mon, 1 Dec 2014 17:05:30 +0000 (18:05 +0100)]
mir: don't initialize the display if the required pixel formats aren't available

11 years agoUpdate release notes
Matthias Clasen [Mon, 1 Dec 2014 15:03:33 +0000 (10:03 -0500)]
Update release notes

Mention that --enable-gtk2-dependency is gone.

11 years agoinspector: Properly update flashing hilight
Benjamin Otte [Mon, 1 Dec 2014 14:38:26 +0000 (15:38 +0100)]
inspector: Properly update flashing hilight

Previously, the inspector would not change the hilight while the
previous hilight was still flashing.
This is inconvenient while arrowing through the object selection
treeview though where you want the currently selected row to hilight
when arrowing quickly.

11 years agoprinting: Don't crop dimensions of layout preview
Marek Kasik [Fri, 28 Nov 2014 14:25:42 +0000 (15:25 +0100)]
printing: Don't crop dimensions of layout preview

Enlarge area for drawing of layout preview in the print dialog
so that it can embody landscape preview with dimensions.

https://bugzilla.gnome.org/show_bug.cgi?id=730232

11 years agoAdwaita: scss cosmetic fixes
Lapo Calamandrei [Mon, 1 Dec 2014 09:14:47 +0000 (10:14 +0100)]
Adwaita: scss cosmetic fixes

11 years agoAdwaita: GtkTreeView tree lines fix
Lapo Calamandrei [Mon, 1 Dec 2014 09:05:42 +0000 (10:05 +0100)]
Adwaita: GtkTreeView tree lines fix

See https://bugzilla.gnome.org/show_bug.cgi?id=740904 for details.

11 years agoMove print preview command to gtksettings.c
Matthias Clasen [Mon, 1 Dec 2014 04:43:07 +0000 (23:43 -0500)]
Move print preview command to gtksettings.c

Having this in the source seems more appropriate.

11 years agoMove print backend list to configure.ac
Matthias Clasen [Mon, 1 Dec 2014 04:23:31 +0000 (23:23 -0500)]
Move print backend list to configure.ac

We already juggle the print backends here, might as well
produce the list.

11 years agoRearrange Makefile some more
Matthias Clasen [Mon, 1 Dec 2014 04:01:13 +0000 (23:01 -0500)]
Rearrange Makefile some more

Move the introspection parts all together, drop several unused
variables and targets.

11 years agoDrop a few more leftovers
Matthias Clasen [Mon, 1 Dec 2014 03:16:42 +0000 (22:16 -0500)]
Drop a few more leftovers

The GTK_FILE_SYSTEM_ENABLE_UNSUPPORTED define is not used anymore,
and we don't install a gtk.css file for Raleigh, so no need to
uninstall one either.

11 years agoDrop gtk-update-icon-cache complications
Matthias Clasen [Mon, 1 Dec 2014 02:49:36 +0000 (21:49 -0500)]
Drop gtk-update-icon-cache complications

gtk-update-icon-cache is no longer used at build time, so a lot
of the complicated machinery we have around that (conditional
build, cross build, etc) are no longer required.

11 years agoMSVC Builds: Finish Removal of the gtk-inspector Projects
Chun-wei Fan [Mon, 1 Dec 2014 04:06:28 +0000 (12:06 +0800)]
MSVC Builds: Finish Removal of the gtk-inspector Projects

The files for build of GtkInspector have been intergrated into the build of
the main GTK+ DLL, and the Visual Studio project templates for those have
been removed as well.  Make that removal complete by removing from the
solution files references to it and make the 'gtk' project not to depend on
the gtk-inspector project.

11 years agotestsuite: Fix test that was committed in a broken state
Benjamin Otte [Mon, 1 Dec 2014 03:04:08 +0000 (04:04 +0100)]
testsuite: Fix test that was committed in a broken state

1) Use font-size instead of color
This makes it easier to compare reference and test because the values
don't change.

2) Actually sort the reference properly
This unbreaks the test.

11 years agoFix distcheck
Matthias Clasen [Mon, 1 Dec 2014 01:53:07 +0000 (20:53 -0500)]
Fix distcheck

Using an absolute path with subdir-objects failed in distcheck.

11 years agoFix ChangeLog generation
Matthias Clasen [Mon, 1 Dec 2014 00:59:10 +0000 (19:59 -0500)]
Fix ChangeLog generation

missing is no longer in the toplevel directory.
Also, clean up some file lists.

11 years agoQuiet a rule
Matthias Clasen [Mon, 1 Dec 2014 00:58:34 +0000 (19:58 -0500)]
Quiet a rule

11 years agoDrop an unused function
Matthias Clasen [Mon, 1 Dec 2014 00:58:08 +0000 (19:58 -0500)]
Drop an unused function

11 years agoGenerate README and INSTALL from configure
Matthias Clasen [Mon, 1 Dec 2014 00:24:07 +0000 (19:24 -0500)]
Generate README and INSTALL from configure

11 years agoCosmetic formatting fixes
Matthias Clasen [Mon, 1 Dec 2014 00:23:24 +0000 (19:23 -0500)]
Cosmetic formatting fixes

11 years agoAdd missing docs
Matthias Clasen [Mon, 1 Dec 2014 00:22:51 +0000 (19:22 -0500)]
Add missing docs

Document GtkSwitch::state_set.

11 years agoUse subdir-objects for docs/tools
Matthias Clasen [Mon, 1 Dec 2014 00:22:00 +0000 (19:22 -0500)]
Use subdir-objects for docs/tools

11 years agoCosmetic fixes
Matthias Clasen [Mon, 1 Dec 2014 00:07:52 +0000 (19:07 -0500)]
Cosmetic fixes

11 years agoDrop vs build stuff for inspector
Matthias Clasen [Mon, 1 Dec 2014 00:05:09 +0000 (19:05 -0500)]
Drop vs build stuff for inspector

Now that the inspector sources are built as part of gtk/, this should
no longer be needed.

11 years agoDon't use escapes in echo strings
Matthias Clasen [Sun, 30 Nov 2014 22:25:43 +0000 (17:25 -0500)]
Don't use escapes in echo strings

This forces us to fight with echo non-portability. Instead,
just use ' instead of \".

11 years agoquartz: Copy annotations
Matthias Clasen [Sun, 30 Nov 2014 21:57:22 +0000 (16:57 -0500)]
quartz: Copy annotations

Better than juggling introspection sources in the Makefile.

11 years agoQuiet some make rules
Matthias Clasen [Sun, 30 Nov 2014 22:18:31 +0000 (17:18 -0500)]
Quiet some make rules

11 years agoUse subdir-objects in gtk/
Matthias Clasen [Sun, 30 Nov 2014 20:33:19 +0000 (15:33 -0500)]
Use subdir-objects in gtk/

11 years agoinspector: Build nonrecursively
Matthias Clasen [Sun, 30 Nov 2014 20:59:53 +0000 (15:59 -0500)]
inspector: Build nonrecursively

11 years agoSplit subdirectory file lists off
Matthias Clasen [Sun, 30 Nov 2014 20:30:48 +0000 (15:30 -0500)]
Split subdirectory file lists off

This moves a little closer to a proper nonrecursive setup, and
makes the gtk Makefile.am less monstrous.

11 years agoList formatting cleanup
Matthias Clasen [Sun, 30 Nov 2014 20:15:59 +0000 (15:15 -0500)]
List formatting cleanup

Always put sublists first.

11 years agoDrop a nonexisting variable
Matthias Clasen [Sun, 30 Nov 2014 20:13:45 +0000 (15:13 -0500)]
Drop a nonexisting variable

11 years agoDrop redundant include
Matthias Clasen [Sun, 30 Nov 2014 20:13:13 +0000 (15:13 -0500)]
Drop redundant include

11 years agoDrop an unused variable
Matthias Clasen [Sun, 30 Nov 2014 19:59:18 +0000 (14:59 -0500)]
Drop an unused variable

This is another leftover from when we were doing export checks.

11 years agoDrop the extra resources/ subdirectory
Matthias Clasen [Sun, 30 Nov 2014 19:50:05 +0000 (14:50 -0500)]
Drop the extra resources/ subdirectory

This subdirectory gets in the way when integrating the inspector
build more fully with GTK+, and does not really add anything.
Just move everything one level up.

11 years agoGtkPlacesSidebar: add support for unmount notifications
Cosimo Cecchi [Sat, 29 Nov 2014 18:33:02 +0000 (10:33 -0800)]
GtkPlacesSidebar: add support for unmount notifications

Now that we can use GNotification from here, send a notification when
umounting from GtkPlacesSidebar.

https://bugzilla.gnome.org/show_bug.cgi?id=740896

11 years agowidget-factory: Add a treeview separator row
Matthias Clasen [Sat, 29 Nov 2014 23:49:46 +0000 (18:49 -0500)]
widget-factory: Add a treeview separator row

Suggested in https://bugzilla.gnome.org/show_bug.cgi?id=740851

11 years agoHighContrast: in app notification padding
Matthias Clasen [Sat, 29 Nov 2014 22:06:04 +0000 (17:06 -0500)]
HighContrast: in app notification padding

Copied the Adwaita treatment from
e5d34372c4f163e49fb1e0a95f53445f6fa13f2c

https://bugzilla.gnome.org/show_bug.cgi?id=740857

11 years agoHighContrast: scale slider fix and cleanup
Lapo Calamandrei [Sat, 29 Nov 2014 17:46:06 +0000 (18:46 +0100)]
HighContrast: scale slider fix and cleanup

Set GtkScale margins on the .trough component so the .slider
doesn't inherit them vanishing.
Remove a bunch trailing white spaces in the process.

11 years agoAdwaita: set scale with marks trough margin where it belongs to
Lapo Calamandrei [Sat, 29 Nov 2014 17:21:12 +0000 (18:21 +0100)]
Adwaita: set scale with marks trough margin where it belongs to

11 years agoBeautify example Makefiles a bit
Matthias Clasen [Sat, 29 Nov 2014 05:26:52 +0000 (00:26 -0500)]
Beautify example Makefiles a bit

11 years agoGtkModelMenuItem: put some space between icon and label
Matthias Clasen [Sat, 29 Nov 2014 05:01:49 +0000 (00:01 -0500)]
GtkModelMenuItem: put some space between icon and label

This makes the bloatpad icons menu look slightly less odd.

11 years agoMake include order consistent in example applications
Matthias Clasen [Sat, 29 Nov 2014 04:55:03 +0000 (23:55 -0500)]
Make include order consistent in example applications

Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=740537

11 years agorange: Implement :hover for the whole widget
Benjamin Otte [Sat, 29 Nov 2014 02:33:47 +0000 (03:33 +0100)]
range: Implement :hover for the whole widget

11 years agorange: Handle redraws inside update_mouse_location
Benjamin Otte [Sat, 29 Nov 2014 02:27:36 +0000 (03:27 +0100)]
range: Handle redraws inside update_mouse_location

This way, we can do finer-grained invalidation. Plus, we get to not
duplicate all the queue_draw() calls.

11 years agorange: Properly queue draws when doing a drag
Benjamin Otte [Sat, 29 Nov 2014 02:23:58 +0000 (03:23 +0100)]
range: Properly queue draws when doing a drag

The dragged area needs to be marked as :active during the drag.

11 years agorange: Remove unused variable
Benjamin Otte [Sat, 29 Nov 2014 02:20:18 +0000 (03:20 +0100)]
range: Remove unused variable

The variable was TRUE from the beginning and only ever set to TRUE.

11 years agorange: No need to update mouse location when starting a drag
Benjamin Otte [Sat, 29 Nov 2014 02:18:50 +0000 (03:18 +0100)]
range: No need to update mouse location when starting a drag

The mouse position doesn't change here. Plus, all callers have just
updated it anyway.

11 years agorange: Only call needed functions from adjustment changes
Benjamin Otte [Sat, 29 Nov 2014 01:39:47 +0000 (02:39 +0100)]
range: Only call needed functions from adjustment changes

No need to recalc the whole range when all that changed was the slider.

11 years agorange: Implement gtk_range_calc_stepper_sensitivity() properly
Benjamin Otte [Sat, 29 Nov 2014 01:17:27 +0000 (02:17 +0100)]
range: Implement gtk_range_calc_stepper_sensitivity() properly

11 years agorange: Implement gtk_range_calc_slider() properly
Benjamin Otte [Sat, 29 Nov 2014 00:47:31 +0000 (01:47 +0100)]
range: Implement gtk_range_calc_slider() properly

11 years agorange: Refactor a function
Benjamin Otte [Sat, 29 Nov 2014 00:39:09 +0000 (01:39 +0100)]
range: Refactor a function

This is in preparation for more places that want to
queue_draw_location().

11 years agorange: Introduce finer-grained invalidation
Benjamin Otte [Sat, 29 Nov 2014 00:23:54 +0000 (01:23 +0100)]
range: Introduce finer-grained invalidation

The invalidation doesn't do anything yet, it just clears up what
actually needs recalculation.

11 years agorange: Changing the min slider size requires a resize
Benjamin Otte [Sat, 29 Nov 2014 00:15:36 +0000 (01:15 +0100)]
range: Changing the min slider size requires a resize

11 years agorange: No need to frce a recalc
Benjamin Otte [Thu, 27 Nov 2014 23:24:06 +0000 (00:24 +0100)]
range: No need to frce a recalc

A resize will already trigger a recalc, so no need to explicitly trigger
it.

11 years agowidget: Clarify some corner cases
Benjamin Otte [Sat, 29 Nov 2014 00:55:06 +0000 (01:55 +0100)]
widget: Clarify some corner cases

I checked Cairo source code (actually pixman, as Cairo just passes
through) to make sure that the behavior stays identical: negative values
cause an error message from pixman, zero is allowed. Both return an
empty region which gtk_widget_queue_draw_region() would then proceed to
ignore.

11 years agoFix build
Jasper St. Pierre [Fri, 28 Nov 2014 22:03:50 +0000 (14:03 -0800)]
Fix build

11 years agoProvide symbolic variants of app icons
Jakub Steiner [Fri, 28 Nov 2014 14:47:58 +0000 (15:47 +0100)]
Provide symbolic variants of app icons

Install symbolic variants of the app icons for gtk3-demo and
gtk3-widget-factory. These are necessary for the HighContrast theme.

https://bugzilla.gnome.org/show_bug.cgi?id=740447

11 years agodocs: Add a missing word
Matthias Clasen [Fri, 28 Nov 2014 17:34:56 +0000 (12:34 -0500)]
docs: Add a missing word

11 years agoDrop an unused variable
Matthias Clasen [Fri, 28 Nov 2014 17:32:26 +0000 (12:32 -0500)]
Drop an unused variable

11 years agoAdwaita: GtkTreeView insensitive state style.
Lapo Calamandrei [Fri, 28 Nov 2014 16:03:53 +0000 (17:03 +0100)]
Adwaita: GtkTreeView insensitive state style.

See https://bugzilla.gnome.org/show_bug.cgi?id=740770.

11 years agoinspector: Simplify some code
Matthias Clasen [Fri, 28 Nov 2014 03:56:46 +0000 (22:56 -0500)]
inspector: Simplify some code

11 years agoGtkStackSwitcher: Make the buttons fill vertically
Yosef Or Boczko [Mon, 24 Nov 2014 17:09:02 +0000 (19:09 +0200)]
GtkStackSwitcher: Make the buttons fill vertically

It fix some cases with different height for the buttons,
like with Hebrew character.

https://bugzilla.gnome.org/show_bug.cgi?id=740642

11 years agoAvoid a critical
Matthias Clasen [Thu, 27 Nov 2014 23:22:52 +0000 (18:22 -0500)]
Avoid a critical

gtk_window_get_focus can return NULL, deal with it.

https://bugzilla.gnome.org/show_bug.cgi?id=740812

11 years agoRender shadows for half-tiled windows
Matthias Clasen [Thu, 27 Nov 2014 14:42:58 +0000 (09:42 -0500)]
Render shadows for half-tiled windows

Without this, side-by-side half-tiled windows are hard to discern.

https://bugzilla.gnome.org/show_bug.cgi?id=708857

11 years agoUpdated Swedish translation
Josef Andersson [Thu, 27 Nov 2014 22:01:44 +0000 (22:01 +0000)]
Updated Swedish translation

11 years agomir: clear screen, keymap and event source when disposing dpy
Marco Trevisan (Treviño) [Thu, 27 Nov 2014 18:25:55 +0000 (19:25 +0100)]
mir: clear screen, keymap and event source when disposing dpy

11 years agoprinting: Fix build with CUPS older than 1.6
Marek Kasik [Thu, 27 Nov 2014 16:04:47 +0000 (17:04 +0100)]
printing: Fix build with CUPS older than 1.6

Define missing functions ippFirstAttribute(), ippNextAttribute()
and macro ippGetCollection(). These were added in CUPS 1.6.

https://bugzilla.gnome.org/show_bug.cgi?id=740358

11 years agoprinting: Fix origin for scaled, rotated pages
Leo Wolf [Wed, 26 Nov 2014 20:18:36 +0000 (20:18 +0000)]
printing: Fix origin for scaled, rotated pages

The calls to cairo_translate in
_gtk_print_context_rotate_according_to_orientation,
_gtk_print_context_reverse_according_to_orientation and
_gtk_print_context_translate_into_margin assume an unscaled context.
These functions should therefore be called before scaling the context,
otherwise the origin does not always end up in the top left corner.

https://bugzilla.gnome.org/show_bug.cgi?id=740742

11 years agox11: Handle obsolete selection requests without crashing
Matthias Clasen [Thu, 27 Nov 2014 03:25:36 +0000 (22:25 -0500)]
x11: Handle obsolete selection requests without crashing

The ICCCM says:

If the specified property is None , the requestor is an obsolete client.
Owners are encouraged to support these clients by using the specified
target atom as the property name to be used for the reply.

Lets do that, instead of crashing.

https://bugzilla.gnome.org/show_bug.cgi?id=740613

11 years agogtkentry: Optimize GtkStyleContext usage
Jasper St. Pierre [Thu, 27 Nov 2014 02:10:43 +0000 (18:10 -0800)]
gtkentry: Optimize GtkStyleContext usage

11 years agogtklabel: Optimize GtkStyleContext usage
Jasper St. Pierre [Thu, 27 Nov 2014 02:10:36 +0000 (18:10 -0800)]
gtklabel: Optimize GtkStyleContext usage

11 years agogtkstylecontext: Optimize GtkStyleContext usage
Jasper St. Pierre [Thu, 27 Nov 2014 02:10:29 +0000 (18:10 -0800)]
gtkstylecontext: Optimize GtkStyleContext usage

11 years agogtktextdisplay: Optimize GtkStyleContext usage
Jasper St. Pierre [Thu, 27 Nov 2014 02:10:21 +0000 (18:10 -0800)]
gtktextdisplay: Optimize GtkStyleContext usage

11 years agogdkdisplay-x11: Don't do extra work when simply moving the window
Jasper St. Pierre [Thu, 27 Nov 2014 01:07:56 +0000 (17:07 -0800)]
gdkdisplay-x11: Don't do extra work when simply moving the window

We shouldn't bother recalculating all the visible regions and wiping
away the old updating areas if we're simply dragging the window around.

11 years agoGtkSpinButton: Use the proper state
Matthias Clasen [Wed, 26 Nov 2014 23:38:43 +0000 (18:38 -0500)]
GtkSpinButton: Use the proper state

Use the style contexts current state when querying it.

11 years agopopover: Send key events only to the focus widget
Carlos Garnacho [Wed, 26 Nov 2014 14:30:52 +0000 (15:30 +0100)]
popover: Send key events only to the focus widget

gtk_window_propagate_key_event() will run unstopped from the focus widget up to the
popover if GDK_EVENT_PROPAGATE was returned along the chain, resulting in infinite
recursion. This could be just triggered by pressing some modifier key on an entry...

11 years agotextbtree: Remove unneeded check
Sebastien Lafargue [Wed, 26 Nov 2014 12:53:30 +0000 (13:53 +0100)]
textbtree: Remove unneeded check

11 years agorange: Remove unnecessary argument
Benjamin Otte [Tue, 25 Nov 2014 22:21:48 +0000 (23:21 +0100)]
range: Remove unnecessary argument

It's always the same value passed in, so just use that value directly.

11 years agorange: Query slider position instead of updating it
Benjamin Otte [Tue, 25 Nov 2014 22:13:21 +0000 (23:13 +0100)]
range: Query slider position instead of updating it

We're updating it later in the function, there's no need to do it here.

11 years agogtkrange: Fix copy/paste error
Benjamin Otte [Tue, 25 Nov 2014 22:12:08 +0000 (23:12 +0100)]
gtkrange: Fix copy/paste error

When factoring out a function in
b88584e7bae9bacbda8bd0d9868cbe50eb8e218d I forgot to adapt these values.

11 years agorange: Setting stepper visibility requires a restyle
Benjamin Otte [Tue, 25 Nov 2014 21:00:11 +0000 (22:00 +0100)]
range: Setting stepper visibility requires a restyle

11 years agoentry: Use correct state when computing icon padding
Benjamin Otte [Tue, 25 Nov 2014 20:57:58 +0000 (21:57 +0100)]
entry: Use correct state when computing icon padding

11 years agoFreeze file system model during editing
Emmanuele Bassi [Wed, 19 Nov 2014 14:43:10 +0000 (14:43 +0000)]
Freeze file system model during editing

If a file system event arrives while GtkFileChooserWidget is asking the
user to edit the name of a newly created folder, the file system model
will drop the row with the editable cell, and the user will have to
start from scratch.

This makes creating new directories impossible inside a directory with a
file currently being downloaded, for instance, and it's really unhelpful
to the user because the editable row simply disappears.

We already have a mechanism in place to freeze the file system model, so
we can reuse it between the add_editable() and the remove_editable()
calls.

https://bugzilla.gnome.org/show_bug.cgi?id=729927

11 years agoRemove overzealous validity check for secrets
Andre Heinecke [Mon, 24 Nov 2014 09:59:32 +0000 (10:59 +0100)]
Remove overzealous validity check for secrets

   We directly get the length of the secret from the g_variant
   and use it in a following g_strndup which ensures that the
   resulting string is terminated.

   This fixes reading secrets which were stored by system-config-printer.

https://bugzilla.gnome.org/show_bug.cgi?id=740612

11 years agoGtkButtonAccessible: Stop emitting state-change signals for ATK_STATE_ARMED
Joanmarie Diggs [Thu, 20 Nov 2014 15:19:52 +0000 (10:19 -0500)]
GtkButtonAccessible: Stop emitting state-change signals for ATK_STATE_ARMED

ATK_STATE_ARMED is now deprecated. There is no replacement.

https://bugzilla.gnome.org/show_bug.cgi?id=740438

11 years agodocs: Fix annotation for GtkCssProviderError
Emmanuele Bassi [Wed, 19 Nov 2014 15:50:55 +0000 (15:50 +0000)]
docs: Fix annotation for GtkCssProviderError

https://bugzilla.gnome.org/show_bug.cgi?id=740374

11 years agoRevert part of "gtknotebook: Optimize GtkStyleContext usage"
Jasper St. Pierre [Tue, 25 Nov 2014 19:21:21 +0000 (11:21 -0800)]
Revert part of "gtknotebook: Optimize GtkStyleContext usage"

This reverts part of commit c71e2131345c929753a0128c780d679ce0c4ce6a.
This part was unfinished and was pushed simply to avoid the warnings.

11 years agogtkstylecontext: Add an optional warning when misusing GtkStyleContext
Jasper St. Pierre [Tue, 25 Nov 2014 19:07:31 +0000 (11:07 -0800)]
gtkstylecontext: Add an optional warning when misusing GtkStyleContext

This allows someone to quickly debug more performance issues with
G_DEBUG=fatal-warnings.

11 years agogtkcellarea: Optimize GtkStyleContext usage
Jasper St. Pierre [Tue, 25 Nov 2014 19:05:57 +0000 (11:05 -0800)]
gtkcellarea: Optimize GtkStyleContext usage

This is a bit bizarre, but the cell renderer can apply different
flags from the actual style context, and we should use those instead
of the widget flags.

11 years agogtknotebook: Optimize GtkStyleContext usage
Jasper St. Pierre [Tue, 25 Nov 2014 19:05:49 +0000 (11:05 -0800)]
gtknotebook: Optimize GtkStyleContext usage

11 years agogtkwindow: Optimize GtkStyleContext usage
Jasper St. Pierre [Tue, 25 Nov 2014 19:05:36 +0000 (11:05 -0800)]
gtkwindow: Optimize GtkStyleContext usage

11 years agodeprecated/gtkstyle: Optimize GtkStyleContext usage
Jasper St. Pierre [Tue, 25 Nov 2014 19:05:04 +0000 (11:05 -0800)]
deprecated/gtkstyle: Optimize GtkStyleContext usage

Even though this is deprecated, it's still initialized for every
screen at startup, so let's minimize the cost.

11 years agogtkentry: Pass the correct set of state flags to gtk_style_context_get*
Jasper St. Pierre [Tue, 25 Nov 2014 01:07:01 +0000 (17:07 -0800)]
gtkentry: Pass the correct set of state flags to gtk_style_context_get*

This eliminates a lot of overhead in the CSS engine recalculating
cached CSS rules, and is overall the correct thing to do.

11 years agogtkwidget: Remove unnecessary code in get_state_flags
Jasper St. Pierre [Tue, 25 Nov 2014 00:56:23 +0000 (16:56 -0800)]
gtkwidget: Remove unnecessary code in get_state_flags

Any time has_focus is called, we will call gtk_widget_update_state_flags
which will assign the state flags properly.